import axios from './request'

//登录
export const Login = (data) => {
    return axios.post("/auth/login", data)
}
// export const Login = (data) => {
//     return axios.get('/task/list', {
//         params: data
//     })
// }

//登出
export const Detail = (id) => {
    return axios.get(`/task/view/${id}`)
}

//省市区
export const GetProvinceList = (data) => {
    return axios.get('/dstrict/list', {
        params: data
    })
}

//注册
export const UserRegister = (data) => {
    return axios.post("/user/register", data)
}

//修改密码
export const UserEditPassword = (data) => {
    return axios.put("/user/editPassword", data)
}

//用户详情
export const GetUserView = (id) => {
    return axios.get(`/user/view/${id}`)
}
